
#ifndef __BSP_CAN2_H__
#define __BSP_CAN2_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <bsp/bsp.h>

extern int bsp_can2_init(void);

extern int bsp_can2_filter_init(uint8_t node_id);

extern bool bsp_can2_tx_transmit(struct rt_can_msg* msg);

extern bool bsp_can2_rx_transmit(struct rt_can_msg* rxmsg, int32_t wait);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* BSP_BSP_CAN_H_ */
